/** 待办 */
import request from '@/utils/request'
/** 修改 */
export function putWaitHandleTask(data) {
  return request({
    method: 'PUT',
    url: '/call-center/api/v1/waitHandleTask',
    data
  })
}
/** 分页查询 */
export function pageWaitHandleTask(data) {
  return request({
    method: 'POST',
    url: '/call-center/api/v1/waitHandleTask/page',
    data,
    hiddenError: true
  })
}

/** 批量处理 */
export function putBatWaitHandleTask(ids) {
  return request({
    method: 'PUT',
    url: '/call-center/api/v1/waitHandleTask/batch',
    data: ids
  })
}

/** 根据服务工单ID查询详情 */
export function getWorkOrderState(id) {
  return request({
    method: 'get',
    url: `/call-center/api/v2/workOrderRecord/simple/${id}`
  })
}
